/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo902;

/**
 *
 * @author Administrator
 */
import java.util.*;

public class LoginDemo {

    public static void main(String[] args) {
      Scanner reader = new Scanner(System.in);
      String name=reader.next();
      String password=reader.next();
      if("zhangsan".equals(name)
          &&password.equals("123")){
          System.out.println("ok");
      }else{
          System.out.println("failure");
      }
      
      
      
      
      
       //int a=100;

    }
}
